<%@ page language="java" import="java.util.*" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css.css" rel="stylesheet" type="text/css">
</head>

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/prototype.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/scriptaculous/scriptaculous.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/overlibmws/overlibmws.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/overlibmws/overlibmws_crossframe.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/overlibmws/overlibmws_iframe.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/overlibmws/overlibmws_hide.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/overlibmws/overlibmws_shadow.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags_controls.js"></script>
  <script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags_parser.js"></script>
 
  <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/ajaxtags.css" />
  <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/site.css" />
  <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/displaytag.css" />


<script>
function test()
{
	var tag=document.getElementById("ajaxSource").value;	
	var tag1 = tag.substring(tag.indexOf('+')+1)	
	if(tag.length != 1)
	{
	alert(tag1)
	f1.action="viewPartnerWebsiteActions.do?selectTag="+tag1;	
	f1.method="post";
	f1.submit();
	}

	
}
</script>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="left" valign="top">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF" bgcolor="#CCCCCC">&nbsp;</td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><table border="0" cellpadding="3" cellspacing="0" bordercolor="#000000">
      <tr>
        <td><table align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="1039" colspan="2" align="left" valign="top"><img src="image/img_header.jpg" width="770" height="1"></td>
            </tr>
            <tr>
              <td colspan="2" align="left" valign="top">
                <%@include file="header.jsp" %>
              </td>
            </tr>
            <tr align="center">
              <td colspan="2" valign="top" class="title1">&nbsp;</td>
            </tr>
            <tr align="center">
              <td colspan="2" valign="top" class="title1">&nbsp;</td>
            </tr>
            <tr align="center" valign="middle">
              <td colspan="2"><span class="title1 style4"></span></td>
            </tr>
            <tr>
              <td colspan="2" align="left" valign="top"><table border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="3"><span class="title1 style4"><strong>Parent website </strong></span></td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="3">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="3">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="3">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td rowspan="5" valign="top"><table width="278" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr align="left" valign="top">
                        <td width="8"><img src="image/B_TABLE_C1.jpg" width="8" height="21"></td>
                        <td width="173" align="left" valign="middle" background="image/B_TABLE_TOP_BG.jpg" class="username"><img src="image/B_CAN-YOU-ANSWER-THIS.jpg" width="173" height="21"></td>
                        <td width="89" background="image/B_TABLE_TOP_BG.jpg"><img src="image/B_TABLE_TOP_BG.jpg" width="8" height="21"></td>
                        <td width="10"><img src="image/B_TABLE_C4.jpg" width="8" height="21"></td>
                      </tr>
                      <tr align="left" valign="top">
                        <td background="image/B_TABLE_LEFT_BG.jpg"><img src="image/B_TABLE_LEFT_BG.jpg" width="8" height="21"></td>
                        <td colspan="2" bgcolor="#EDFBFE"><table border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr align="left" valign="top">
                              <td colspan="2"><img src="image/WIDTH_BLUE.jpg" width="250" height="1"></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td align="center" valign="middle">&nbsp;</td>
                              <td class="login_b-l">&nbsp;</td>
                            </tr>
                            <tr align="left" valign="top">
                              <td align="center" valign="middle">&nbsp;</td>
                              <td class="login_b-l">Could You answer this question that is selected by interest profile? </td>
                            </tr>
                            <tr align="left" valign="top" class="username">
                              <td>&nbsp;</td>
                              <td class="gray_notthin">&nbsp;</td>
                            </tr>
                            <tr align="left" valign="top" class="username">
                              <td>username</td>
                              <td class="table_content">&nbsp;&nbsp;5 minutes ago</td>
                            </tr>
                            <tr align="left" valign="top">
                              <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr align="left" valign="top">
                              <td colspan="2"><a href="http://www.domainanme.com/path/path/..." target="_blank"><font color="#003366">http://www.domainanme.com/path/path/...</font></a></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td>&nbsp;</td>
                              <td align="right" valign="middle"><div align="right">
                                  <table width="0" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td align="left" valign="top"><a class="bigbutton" href="#" onclick="this.blur(); return false;"><span class="bigbutton"><b>
                                  Answer</b></span></a></td>
                                    </tr>
                                  </table>
                              </div></td>
                            </tr>
                        </table></td>
                        <td background="image/B_TABLE_RIGHT_BG.jpg"><img src="image/B_TABLE_RIGHT_BG.jpg" width="8" height="21"></td>
                      </tr>
                      <tr align="left" valign="top">
                        <td><img src="image/B_TABLE_C2.jpg" width="8" height="9"></td>
                        <td colspan="2" background="image/B_TABLE_BOTTOM_BG.jpg"><img src="image/B_TABLE_BOTTOM_BG.jpg" width="8" height="9"></td>
                        <td><img src="image/B_TABLE_C3.jpg" width="8" height="9"></td>
                      </tr>
                    </table>                      <br>
                      <table width="266" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr align="left" valign="top">
                          <td width="8"><img src="image/B_TABLE_C1.jpg" width="8" height="21"></td>
                          <td width="84" align="left" valign="middle" background="image/B_TABLE_TOP_BG.jpg" class="username"><img src="image/B_ASK.jpg" width="31" height="21"></td>
                          <td width="187" background="image/B_TABLE_TOP_BG.jpg"><img src="image/B_TABLE_TOP_BG.jpg" width="8" height="21"></td>
                          <td width="10"><img src="image/B_TABLE_C4.jpg" width="8" height="21"></td>
                        </tr>
                        <tr align="left" valign="top">
                          <td background="image/B_TABLE_LEFT_BG.jpg"><img src="image/B_TABLE_LEFT_BG.jpg" width="8" height="21"></td>
                          <td colspan="2" bgcolor="#EDFBFE"><table border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td colspan="2" align="left" valign="top"><img src="image/img_t_width_differ.jpg" width="260" height="1"></td>
                              </tr>
                              <tr>
                                <td colspan="2" align="left" valign="top" class="table_content">Enter a question </td>
                              </tr>
                              <tr align="center">
                                <td height="50" colspan="2" valign="top"><form name="form2" method="post" action="">
                                    <textarea name="textarea" cols="25" rows="5"></textarea>
                                </form></td>
                              </tr>
                              <tr>
                                <td align="left" valign="top" class="table_content">120 characters </td>
                                <td align="right" valign="middle"><div align="right">
                                    <table width="0" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td><a class="bigbutton" href="#" onclick="this.blur(); return false;"><span class="bigbutton"><b>
                                  &nbsp;&nbsp;&nbsp;Ask&nbsp;&nbsp;&nbsp;</b></span></a></td>
                                      </tr>
                                    </table>
                                </div></td>
                              </tr>
                          </table></td>
                          <td background="image/B_TABLE_RIGHT_BG.jpg"><img src="image/B_TABLE_RIGHT_BG.jpg" width="8" height="21"></td>
                        </tr>
                        <tr align="left" valign="top">
                          <td><img src="image/B_TABLE_C2.jpg" width="8" height="9"></td>
                          <td colspan="2" background="image/B_TABLE_BOTTOM_BG.jpg"><img src="image/B_TABLE_BOTTOM_BG.jpg" width="8" height="9"></td>
                          <td><img src="image/B_TABLE_C3.jpg" width="8" height="9"></td>
                        </tr>
                      </table></td>
                    <td><img src="jsp/web/image/img_t_width_differ.jpg" width="20" height="4"></td>
                    <td colspan="3"><table border="0" align="center" cellpadding="5" cellspacing="0">
                        <tr align="center" valign="middle">
                          <td colspan="5" class="buleheading"><img src="jsp/web/image/img_t_width_differ.jpg" width="500" height="4"></td>
                        </tr>
                        <tr align="center" valign="middle">
                          <td colspan="2" align="left" class="username">Fillter:</td>
                          <td width="392" align="left" class="buleheading">
                            <form name="f1">
                              <input name="text" type=text id="ajaxSource" onblur="test()"  onchange="test()" size=25 />
                              <span id="indicator" style="display:none;"><img src="/main/indicator.gif" /></span>
                              <input id="make1" name="make1" type="hidden" size="30" />
                            </form>
                            <div id="errorMsg" style="display:none;border:1px solid #e00;background-color:#fee;padding:2px;margin-top:8px;width:300px;font:normal 12px Arial;color:#900"></div>
                            <ajax:autocomplete 
						  source="ajaxSource"
						  target="make1"
						  parameters="model={ajaxSource}"
						  baseUrl="/main/autocomplete.view"
						  className="autocomplete"		
						  minimumCharacters="1"		
						  indicator="indicator"							  
						  parser="new ResponseXmlToHtmlListParser()"/><br></td>
                          <td width="19" class="buleheading">&nbsp;</td>
                          <td width="19" class="buleheading">&nbsp;</td>
                        </tr>
                        <tr align="left" valign="middle">
                          <td colspan="5" class="table_content">questionforge mambers sorted by thier contribution to the tag <br>
                        selected above. if no tag is selected, they are sorted by the <br>
                        total award points. [Award: tag points/total points]</td>
                        </tr>
                        <tr align="left" valign="middle">
                          <td colspan="5" class="table_content">&nbsp;</td>
                        </tr>
                        <logic:present name="partnerSiteTagForm" property="partnerWebsiteList" > <logic:iterate id="webSiteList" name="partnerSiteTagForm" indexId="i" property="partnerWebsiteList" >
                        <tr align="center" valign="middle">
                          <td width="46"><span class="style5"><%=(i+1) %></span></td>
                          <td width="78"><html:link action="viewSiteProfileActions.do" paramId="siteId" paramName="webSiteList" paramProperty="siteId"><img src="<bean:write name="webSiteList" property="screenShot"  />" width="66" height="48"></html:link></td>
                          <td colspan="3" align="left" bgcolor="#F4F4F4" class="table_content"><table border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td class="login_b-t"><bean:write name="webSiteList" property="siteName" /> </td>
                                <td colspan="2" class="table_content"><strong><bean:write name="webSiteList" property="score" /></strong></td>
                                <td><span class="style2">&nbsp;</span><span class="style4">&nbsp;<strong class="star">*&nbsp;*&nbsp;*&nbsp;*</strong></span></td>
                              </tr>
                              <tr>
                                <td colspan="4">Keywords;&nbsp;<span class="bule-footer">&nbsp;tag&nbsp;&nbsp;,&nbsp;&nbsp;word&nbsp;&nbsp;,&nbsp;&nbsp;list&nbsp;&nbsp;,&nbsp;&nbsp;goes&nbsp;&nbsp;,on the&nbsp;&nbsp;,&nbsp;&nbsp;line&nbsp;&nbsp;,&nbsp;&nbsp;more&nbsp;&nbsp;,&nbsp;&nbsp;..... </span></td>
                              </tr>
                              <tr>
                                <td colspan="2" align="center" valign="middle"> URL :&nbsp;&nbsp;&nbsp;<a href="<bean:write name="webSiteList" property="url" />"><bean:write name="webSiteList" property="url" /></td>
                                <td colspan="2" align="center" valign="bottom"><form name="form1" method="post" action="">
                                    <input type="checkbox" name="checkbox" value="checkbox">
                                    <span class="login_b-l">watch this tag </span>
                                </form></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr align="center" valign="middle">
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td colspan="3" align="left" valign="middle" class="table_content">&nbsp;</td>
                        </tr>
                        </logic:iterate> </logic:present>
                        <tr align="center" valign="middle">
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td colspan="3" align="center" class="username">&lt; 1 2 3 4 5 6 7 8 9 10 &gt;</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td colspan="3">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td colspan="3" valign="top">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td colspan="3" valign="top">&nbsp;</td>
                  </tr>
                  <tr align="left" valign="middle">
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td colspan="2" align="left" valign="top">&lt;
                  <%@include file="footer.jsp" %></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top">
    <td width="50%" bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="50%" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
</table>
</body>
</html>
